<template>
  <div class="mine">
      <h3 class="h_title">饿了么</h3>
      <!-- 账户设置 -->
      <div class="head_box">
        <div class="headshot">
          <img src="../../assets/1.jpg" alt="">
        </div>
        <div class="title">
          <span>7a9aa5a077a</span>
          <span>136****9070</span>
        </div>
        <div class="set">账户设置</div>
      </div>
      <!-- 吃货卡 -->
      <div class="chi">
        <span class="c_title">吃货卡</span>
        <span>|</span>
        <p class="chi_d">吃货豆：<span>1461</span></p>
        <p class="chi_j">升级超级吃货卡，每月得无门槛红包，下单5倍返吃货豆</p>
        <p class="chi_jt"> 〉</p>
      </div>
      <!-- 红包余额 -->
      <div class="money">
        <div class="mon_left">
          <p>红包</p>
          <span>7张今日到期</span>
        </div>
        <div class="mon_right">
          <p>余额</p>
          <span>0元</span>
        </div>
      </div>
      <!-- 常用工具 -->
      <div class="tools">
        <Mine_tools></Mine_tools>
      </div>
      <!-- 邀请好友 -->
      <div class="gay">
        <div class="gay_left">
          <p class="tit1">邀请好友得现金</p>
          <p class="tit2">最高得15元</p>
          <img src="https://www.metoopic.com/uploads/allimg/201207/16-20120G64300623.jpg" alt="">
          <div class="qyq">
            <span>去邀请</span>
            <span>查佣金</span>
          </div>
        </div>
        <div class="gay_left">
          <p class="tit1">饿了么服务号</p>
          <p class="tit2">关注后及时接收系统通知</p>
          <img src="https://www.metoopic.com/uploads/allimg/201207/16-20120G64300623.jpg" alt="">
          <div class="qyq">
            <span>立即关注</span>
          </div>
        </div>
      </div>
  </div>
</template>

<script>
import Mine_tools from '../../components/Mine_tools.vue';
export default {
  components:{ Mine_tools },
}
</script>

<style lang='scss' scoped>
// 账户设置
.h_title{
  font-weight: normal;
  margin-left: 10px;
  margin-top: 5px;
}
.head_box {
  // background-color: #999;
  margin: 10px;
  padding: 10px 0;
  display: flex;
  position: relative;
  .headshot{
    width: 50px;
    height: 50px;
    margin-right: 10px;
    // border: 1px solid #000;
    border-radius: 40px ;
    img{
      width: 100%;
      border-radius: 40px;
    }
  }
  .title{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    span:nth-child(1){
      font-weight: bolder;
    }
    span:nth-child(2){
      font-size: 12px;
      color: #999;
    }
  }
  .set{
    position: absolute;
    // display: inline-block;
    top: 25px;
    right: 10px;
    font-size: 14px;
    border: 1px solid #999;
    padding: 3px 5px;
    border-radius: 20px; ;
  }
}
// 吃货卡
.chi{
  margin: 10px 15px;
  display: flex;
  height: 70px;
  position: relative;
  background-image:linear-gradient(90deg, rgb(66, 148, 237), rgb(96, 196, 245));
  border-radius: 10px;
  box-shadow: 0 8px 12px #ebedf0;

  .c_title{
    display: inline-block;
    width: 60px;
    color: #fff;
    font-size: 20px;
    margin: 10px 15px;
    text-align: center;
  }
  span:nth-child(2){
    color: #fff;
    opacity: .4;
    font-size: 20px;
    margin-top: 10px ;
  }
  .chi_d{
    margin: 13px 10px;
    font-size: 12px;
    width: 110px;
    color: #fff;
    span{
      font-size: 20px;
    }
  }
  .chi_j{
    position: absolute;
    left: 15px;
    bottom: 10px;
    color: #fff;
    opacity: .5;
    font-size: 12px;
  }
  .chi_jt{
    position: absolute;
    right: 0;
    top: 20px;
    font-size: 20px;
    color: #fff;
    opacity: .5;
  }
}
.money{
  display: flex;
  justify-content: space-around;
  height: 70px;
  margin: 0 15px;
  background-color: #fff;
  text-align: center;
  box-shadow: 0 8px 12px #ebedf0;
  border-radius: 10px;
  .mon_left{
    margin-top: 14px;
    p{
      font-weight: bolder;
    }
    span{
      display: inline-block;
      margin-top: 5px;
      font-size: 12px;
      color: #999;
    }
  }
  .mon_right{
    margin-top: 14px;
    p{
      font-weight: bolder;
    }
    span{
      display: inline-block;
      margin-top: 5px;
      font-size: 12px;
      color: #999;
    }
  }
}
.gay{
  margin: 15px;
  height: 200px;
  display: flex;
  justify-content:space-between;
  .gay_left{
    width: 167px;
    height: 170px;
    // margin-left;
    background-color: #fff;
    box-shadow: 0 8px 12px #ebedf0;
    border-radius:10px ;
    .tit1{
      font-weight: bolder;
      padding: 10px 0 0 10px;
    }
    .tit2{
      padding: 5px 0 0 10px;
      color: #999;
      font-size: 12px;
    }
    img{
      display: block;
      width: 80px;
      margin: auto;
    }
    .qyq{
      display: flex;
      justify-content: space-around;
      margin: 5px 10px;
        span{
        display: inline-block;
        width: 60px;
        height: 20px;
        line-height: 20px;
        border-radius: 10px; ;
        text-align: center;
        font-size: 12px;
        border: 1px solid #999;
      }
    }
  }
}
</style>